Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging.jpeg.jj2000.j2k.util Namespace / MathUtil Class / gcd Method / gcd(Int32[]) Method
Array containing the numbers.

In This Topic
    gcd(Int32[]) Method
    In This Topic
    Method that calculates the Greatest Common Divisor (GCD) of several positive integer numbers.
    Syntax
    'Declaration
     
    Public Overloads Shared Function gcd( _
       ByVal x() As System.Integer _
    ) As System.Integer
    public static System.int gcd( 
       System.int[] x
    )

    Parameters

    x
    Array containing the numbers.
    See Also